@extends('home/layout')

@section('content')
<div class="row">
    <div class="col-md-8">
        @foreach($list as $v)
        <div class="panel panel-default">
            <div class="panel-heading">{{ $v->title }} <span class="pull-right text-muted"><i class="glyphicon glyphicon-time"></i> 2015-05-15</span></div>
            <div class="panel-body">
                <p>Bootstrap是Twitter推出的一个开源的用于前端开发的工具包，由Twitter的设计师Mark Otto和Jacob Thornton合作开发。Bootstrap提供了优雅的HTML和CSS规范，它由动态CSS语言LESS写成，与CSS框架Blueprint存在很多相似之处。Bootstrap推出后颇受欢迎，一直是GitHub上的热门开源项目。</p>
                <a class="btn btn-danger pull-right btn-sm" type="button" href="{{ url('show/'.$v->id) }}">
                    阅读全文 <span class="badge">5</span>
                </a>
            </div>
        </div>
        @endforeach
        <?php echo $list->render() ?>
    </div>
    <div class="col-md-4">
        @include('home/common/new-article')
    </div>
</div>
@endsection